package com.itheima.service;

import com.itheima.pojo.Shopping;
import com.itheima.pojo.ShoppingDTO;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

public interface ShoppingService {

    // 新增
    void save(Shopping shopping);

    //  根据ID查询
    Shopping getById(Long skuId);

    // 分页
    List<Shopping> list(Integer pageNum,Integer pageSize, ShoppingDTO shoppingDTO);

    // 删除
    void delect(Long skuId);

    //修改
    void updete(Shopping shopping);
}
